package ahblue.cn.tanzi.jpush;

import android.content.Context;

import java.io.Serializable;

import ahblue.cn.tanzi.model.user.CodeModel;
import ahblue.cn.tanzi.model.user.LoginResultModel;

/**
 * Created by fengdongfei on 2018/12/4.
 */

public class PushModel implements Serializable{


    /**
     * code : 200
     * msg : test by pingxu
     * data : {"title":"test_tiel","order_no":1545120659,"content":"test_hello_word"}
     */

    private int code;
    private String msg;
    private DataBean data;

    public static void Bind(Context context, String  regid){
        CodeModel.BindRegid(context, regid, LoginResultModel.getToken(context), new CodeModel.VertifyListener() {
            @Override
            public void conver(boolean b) {

            }
        });
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean {
        /**
         * title : test_tiel
         * order_no : 1545120659
         * content : test_hello_word
         */

        private String title;
        private int order_no;
        private String content;

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public int getOrder_no() {
            return order_no;
        }

        public void setOrder_no(int order_no) {
            this.order_no = order_no;
        }

        public String getContent() {
            return content;
        }

        public void setContent(String content) {
            this.content = content;
        }
    }
}
